<div class="selectionZone">
<div class="leftZone">
<h1>New Item</h1>

<?php include_partial('form', array('form' => $form)) ?>
</div>
<div class="rightZone">
        <?php foreach($icos as $ico) { ?>
                <div class="ico"><a href="#" onClick='put_item_item_ico("<?php echo $ico ?>")'><?php echo $ico ?><br/><?php echo image_tag('ico_items/'.$ico); ?></a></div>
        <?php } ?>
		
		<div class="uploadForm"><?php echo form_tag('items/icoupload', 'multipart=true'); ?>
  <span>Ajouter une image : <span><input id="icoFile" type="file" name="icoFile"/>
			<input type="submit" />
</form>

		</div>
</div>
</div>
<script type="text/javascript">

function put_item_item_ico(Text){
  $('#item_item_ico').val(Text);
}

</script>